package com.smile.frame.config.rabbit.enums;

/**
 * @author LGC
 */
public interface IBindEnum {

    String getDesc();

    String getExchange();

    String getQueue();

    String getKey();

    default String toJson() {
        return "{" +
                "desc:'" + getDesc() + '\'' +
                ", exchange:'" + getExchange() + '\'' +
                ", queue:'" + getQueue() + '\'' +
                ", key:'" + getKey() + '\'' +
                '}';
    }
}
